Error-Correcting Source Code
نویسندگان
چکیده
We study how constraint-based static analysis can be applied to the automated and systematic debugging of program errors. Strongly moding and constraint-based mode analysis are turning to play fundamental roles in debugging concurrent logic/constraint programs as well as in establishing the consistency of communication protocols and in optimization. Mode analysis of Moded Flat GHC is a constraint satisfaction problem with many simple mode constraints, and can be solved efficiently by unification over feature graphs. We have proposed a simple and efficient technique which, given a non-well-moded program, diagnoses the “reasons” of inconsistency by finding minimal inconsistent subsets of mode constraints. Since each constraint keeps track of the symbol occurrence in the program that imposed the constraint, a minimal subset also tells possible sources of program errors. The technique is quite general and can be used with other constraint-based frameworks such as strong typing. Based on the above idea, we study the possibility of automated debugging in the absence of mode/type declarations. The mode constraints are usually imposed redundantly, and the constraints that are considered correct can be used for correcting wrong symbol occurrences found by the diagnosis. As long as bugs are near-misses, the automated debugger can propose a rather small number of alternatives that include the intended program. Search space is kept small because constraints effectively prune many irrelevant alternatives. The paper demonstrates the technique by way of examples.
منابع مشابه
Error Correcting Codes And Their Implementation
We consider dictionaries of size n over the finite universe u = (0, l)w and introduce a new technique for their implementation: error correcting codes. protected with an error-correcting code (ECC) is presented in this compared with the most recent implementation. treated within industries for their products. ―VLSI Implementation of Decoder Error Correcting in Satellite. Concatenation Code in F...
متن کاملJoint Source-channel Fractal Image Coding
We propose a joint source channel coding system for fractal image codes in which both a transmission bit rate allocation scheme and an unequal error protection strategy are considered. We express the total distortion in terms of the source distortion and the channel distortion. Then, we allocate the available total bit rate between the source code and a range of error-correcting codes using a L...
متن کاملA Generalization of the Parallel Error Correcting Codes by Allowing Some Random Errors
This paper generalizes parallel error correcting codes proposed by Ahlswede et al. over a new type of multiple access channel called parallel error channel. The generalized parallel error correcting codes can handle with more errors compared with the original ones. We show construction methods of independent and non-independent parallel error correcting codes and decoding methods. We derive som...
متن کاملHccc and Slbc for Audio Signals
This paper gives two lossless speech compression schemes Hamming correction codes compressor (HCCC) and Systematic Linear Block Code Compressor (SLBC) based on error correcting Hamming code and systematic linear block codes respectively. Hamming codes are a family of linear errorcorrecting codes that can detect up to two-bit errors or correct one-bit errors. Systematic linear block code is any ...
متن کاملImproved Construction Methods for Error Correcting Constant Weight Codes
Two construction methods for t error correcting constant weight codes are developed. Both of these methods are improvements over the existing codes. One construction is recursive, which is based on the observation that a 2t error correcting code can be built by concatenating two t error correcting codes. This results in the reduction of code word length for higher t values. The other constructi...
متن کاملOn the Performance of Multiple Description Codes over Bit Error Channels
Multiple description (MD) codes have been proposed to provide robustness against data loss in packet-switched networks. In this paper, we report results on the performance of MD codes when used on bit error channels with error correcting codes, in order to handle loss of blocks when the number of errors in a block exceeds the correcting ability of the code. We find that MD codes appear to be ou...
متن کامل